<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="lastcommentpost">
<table class="b10b" width="100%" border="1">

	<tr>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Foto</td>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Commento</td>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Autore messaggio</td>
	</tr>

	<xsl:for-each select="gp">
		<tr>
		<td align="left" valign="top"><a href="/gallery/galleryShow.aspx?gid={@gid}&amp;pid={c/@pid}" class="body_10px_red"><img border="0" src="/imgs/gallery/thumb/{@picname}"/></a></td>
<xsl:choose>
	<xsl:when test='c/@read = 1'>
		<td align="left"><a style="color:gray;" href="/gallery/galleryShow.aspx?gid={@gid}&amp;pid={c/@pid}">&#160;<xsl:value-of select="c/@comment"/></a></td>
	</xsl:when>
	<xsl:otherwise>
		<td align="left">
		<a style="" href="/gallery/galleryShow.aspx?gid={@gid}&amp;pid={c/@pid}">&#160;<xsl:value-of select="c/@comment"/></a>
		</td>
	</xsl:otherwise>
</xsl:choose>
		<td align="left" valign="top">
			<nobr>
			<xsl:call-template name="user">
				<xsl:with-param name="status" select="c/u/@uStatus"/>
				<xsl:with-param name="sexid" select="c/u/@sexid"/>
				<xsl:with-param name="certified" select="c/u/@certified"/>
				<xsl:with-param name="userid" select="c/u/@userid"/>
				<xsl:with-param name="nick" select="c/u/@nick"/>
			</xsl:call-template>
			</nobr>
			<div style="color:gray; ">(
			<xsl:call-template name="ggmmaahhmm">
				<xsl:with-param name="time" select="c/@posted"/>
				<xsl:with-param name="cr" select="0"/>
			</xsl:call-template>
			)</div>
		</td>
		</tr>
	</xsl:for-each>
</table>

</xsl:template>

</xsl:stylesheet>